<?php
$this->widget('application.extensions.uploadify.MUploadify',array(
  'name'=>'imagePhoto',
  'script'=>array("slide/create/modelName/$modelName/modelId/$modelId"),
  'multi'=> true,
  'fileExt'=>'*.jpg;*.png;',
  'uploadButtonText'=>CHtml::image( Yii::app()->request->getBaseUrl(true).'/images/icons/btn_uploader.png'),
  'fileDesc'=>Yii::t('application','Image files'),
  'onAllComplete'=>'js:function(){alert("Pictures uploaded!"); location = "' . Yii::app()->request->getBaseUrl(true) . '/slide/list/modelName/'.$modelName.'/modelId/'.$modelId.'";}',
));
?>